package com.aios.service;

import java.util.List;

import com.aios.entity.Switch;
import com.aios.entity.mapper.SwitchTimer;

public interface SwitchService extends GenericService<Switch, String> {
	
	List<Switch> findBySwitchPanel(String id);
	List<Switch> findAllBySwitchPanelId(String id);
	List<Switch> findByUserId(String id);
	List<Switch> viewCurrentSwitchStatus(String id);
	List<Switch> switchStatus(String panelId);
	ExistValidationEnum nameExistValidation(String id, String name, String userId);
	boolean changeSwitchStatus(String panelId, String switchId);
	List<SwitchTimer> findByDayAndTime(int day, int min,int max);
}
